let a: null | number | string = null

a = null
a = 10
a = '123'
// a = false

// 应用场景
let timerId: null | number = null

timerId = setTimeout(() => {}, 1)
